#include<stdio.h>
int main()
{
    int day=9;
    int total=1;
    while(day>=1)
    {
        total=(total+1)*2;
        day--;
    }
    printf("妈妈总共买了%d块巧克力\n",total);
    return 0;
}